package com.earthchen.domain.entity.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.earthchen.domain.entity.BaseEntity;


/**
 * 用户和角色关联 sys_user_role
 *
 * @author 占超群
 */
@TableName("t_sys_user_role")
public class UserRole extends BaseEntity
{
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 角色ID
     */
    private Long roleId;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getRoleId()
    {
        return roleId;
    }

    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    @Override
    public String toString()
    {
        return "UserRole [userId=" + userId + ", roleId=" + roleId + "]";
    }

}
